#!/usr/bin/env bash

echo "> Gatekeeper connected!!!"
echo "$trusted_ip" > run/vpn_ip
echo "$trusted_port" > run/vpn_port
echo "$dev" > run/vpn_device

# Run user script when connected
if [ -f data/up.sh ]; then
	echo 'Running user script data/up.sh...'
	data/up.sh
fi
